//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.emin.platform.productCenter.util;

import net.sf.json.JSONObject;
import org.apache.log4j.Logger;

public class HttpUtil {
    private static Logger logger = Logger.getLogger(HttpUtil.class);

    public HttpUtil() {
    }

    public static JSONObject httpPost(String host, Integer port, String url, JSONObject params, String loginInfo) {
        JSONObject json = new JSONObject();
        if (Long.valueOf(String.valueOf(params.get("id"))).compareTo(new Long(1L)) == 0) {
            json.put("dbHost", "192.168.0.200");
            json.put("dbPort", "5432");
            json.put("dbUser", "postgres");
            json.put("dbPassword", "1");
            json.put("dbName", "cjk");
        } else {
            json.put("dbHost", "localhost");
            json.put("dbPort", "5432");
            json.put("dbUser", "postgres");
            json.put("dbPassword", "123456");
            json.put("dbName", "cjk");
        }

        return json;
    }
}
